package top.kaoshanji.p3ch04a.mapper;

import top.kaoshanji.p3ch04a.model.Teacher;

/**
 * @author kaoshanji
 * ^_^
 * create time 2025/4/20 10:40
 */
public interface TeacherMapper {

    /**
     * 根据教师id查询教师和学生（collection标签之关联嵌套映射）
     * @param id 教师id
     * @return Teacher
     */
    Teacher getTeacherByID1(Integer id);

    /**
     * 根据教师id查询教师和学生（collection标签之关联嵌套查询）
     * @param id 教师id
     * @return Teacher
     */
    Teacher getTeacherByID2(Integer id);


}
